// oveloaded constructors

# include <iostream>
using namespace std;

class BioData {
  char *name[30], *sex[6];
  int hight, weight;
public:
  BioData (char nm[30], char sx[6], int ht, int wt);
  BioData (char nm[30], char sx[6]);
  BioData ();
  void display();
};

BioData::BioData (char nm[30], char sx[6], int ht, int wt) {
  *name = nm;
  *sex =  sx;
  hight = ht;
  weight = wt;
}

BioData::BioData (char nm[30], char sx[6]) {
  *name = nm;
  *sex =  sx;
  hight = 0;
  weight = 0;
}

void BioData::display() {
  cout << "*****************************"<< endl;
  cout << "Name: " << *name << endl;
  cout << "Sex: " << *sex << endl;
  cout << "Height in cm: " << hight << endl;
  cout << "Weight in kg: " << weight << endl;
  cout << "*****************************"<< endl;
}

int main() {
  char nm1[30], sx1[6], nm2[30], sx2[6];
  int ht, wt;
  cout << endl;
  cout << "Enter first person name: ";
  cin >> nm1;
  cout << "Enter first person sex: ";
  cin >> sx1;
  cout << "Enter first person height in cm: ";
  cin >> ht;
  cout << "Enter first person weight in kg: ";
  cin >> wt;
  cout << endl;
  cout << "Enter second person name: ";
  cin >> nm2;
  cout << "Enter second person sex: ";
  cin >> sx2;
  BioData bio1(nm1, sx1, ht, wt), bio2(nm2, sx2);
  bio1.display();
  bio2.display();
}
